package io.renren.modules.project.service;

import io.renren.modules.project.entity.PojectTaskEntity;

import java.util.List;
import java.util.Map;

/**
 * 项目任务表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-10-16 15:02:36
 */
public interface PojectTaskService {
	
	PojectTaskEntity queryObject(String id);
	
	List<PojectTaskEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(PojectTaskEntity pojectTask);
	
	void update(PojectTaskEntity pojectTask);
	
	void delete(String id);
	
	void deleteBatch(String[] ids);

	Map<String,Object> milepost(String pojectId);

	//提交
	void updataTaskSubmit(String id);

	//完工
	void updataTaskComplete(PojectTaskEntity pojectTaskEntity);

    //驳回
	void updataTaskReject(String id,String price,Long userId);

	String queryReject(String taskId);

	// 待办任务
	List<Map<String,Object>> getDoingTaskList(String userId, List<String> roleIdList);

	List getMilepostTask(String projectId);

	void updateOrder(List<PojectTaskEntity> pojectTaskEntities);

	void deleteTask(String id,List<PojectTaskEntity> pojectTaskEntities);

	void deleteWorkitem(String id);

	List queryTemplateTask(String projectId);

	void projectAddTask(List<PojectTaskEntity> pojectTaskEntities);
}
